import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { ApAntService } from './ap_ant.service';
import { CreateApAntDto } from './dto/create-ap_ant.dto';
import { UpdateApAntDto } from './dto/update-ap_ant.dto';

@Controller('ap/ant')
export class ApAntController {
  constructor(private readonly apAntService: ApAntService) {}

  @Post('manage_get')
  async postCommGet() {
    return this.apAntService.postCommGet();
  }

  @Post('comm_set')
  async postCommSet(@Body() body: any) {
    return this.apAntService.postCommSet(body);
  }

  @Post('param_set')
  async postParamSet(@Body() body: any) {
    return this.apAntService.postParamSet(body);
  }

  @Post('manage_set')
  async postManageSet(@Body() body: any) {
    return this.apAntService.postManageSet(body);
  }

  @Post('del')
  async postDel(@Body() body: any) {
    return this.apAntService.postDel(body);
  }

  @Post('status_get')
  async postStatusGet(){
    return this.apAntService.postStatusGet()
  }
   


  //天线相控阵状态
  @Post('phased_array_status')
  async postPhasedArrayStatus(@Body() body: any) {
    return this.apAntService.postPhasedArrayStatus(body);
  }


  //天线故障状态
  @Post('fault_status')
  async postFaultStatus(@Body() body: any) {
    return this.apAntService.postFaultStatus(body);
  }


  // 获取天线罩插损
  @Post('ant_insertion_loss_get')
  async postAntInsertionLossGet(@Body() body: any) {
    return this.apAntService.postAntInsertionLossGet();
  }

  // 设置天线罩插损
  @Post('ant_insertion_loss_set')
  async postAntInsertionLossSet(@Body() body: any) {
    return this.apAntService.postAntInsertionLossSet(body);
  }

  // 天线阻塞区数据导入
  @Post('data')
  async postAntBlockDataImport(@Body() body: any) {
    return this.apAntService.postAntBlockDataImport(body);
  }

  // 天线功放实时信息获取
  @Post('gf_realtime_info')
  async postGfRealtimeInfo(@Body() body: any) {
    return this.apAntService.postGfRealtimeInfo(body);
  }

  //天线功放固定信息获取
  @Post('gf_fixed_info')
  async postGfFixedInfo(@Body() body: any) {
    return this.apAntService.postGfFixedInfo(body);
  }

  //波束校准
  @Post('beampoint_set')
  async postBeampointSet(@Body() body: any) {
    return this.apAntService.postBeampointSet(body);
  }


  // 天线厂商信息获取-芯片化
  @Post('ant_vendor_info_get')
  async postAntVendorInfoGet(@Body() body: any) {
    return this.apAntService.postAntVendorInfoGet(body);
  }
}
